﻿using UnityEngine;
using System.Collections;
using PBMessage;
public class UIGameEnd : BaseWidget
{

    public GameObject BackToHallBtn; 
	void Start () {
        UIEventListener.Get(BackToHallBtn).onClick += OnClickBackToHallBtn;
	}

    public void OnClickBackToHallBtn(GameObject go)
    {
        CS_BackToHall backHall = new CS_BackToHall();
        backHall.UserId = Game.Model.Get<PlayerModel>().UserId;
        Game.Net.SendPacket<CS_BackToHall>(backHall, PBMessageID.CS_BackToHall);
    }
}
